//
//  FocusCell.m
//  PortalWeb
//
//  Created by wuxian on 14-3-14.
//  Copyright (c) 2014年 wuxian. All rights reserved.
//

#import "SalesFocusCell.h"

@implementation SalesFocusCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

//布局ui
- (void)configUIWithData:(NSArray *)focusArray {
//    _focusView.focusDelegate = self;
//    NSMutableArray *focusData = [[NSMutableArray alloc] initWithCapacity:10];
//    for (int i=0; i<[focusArray count]; i++) {
//        NSString *imgUrl = [GlobalData getAbsolutePath:[focusArray objectAtIndex:i] inView:_focusView];
//        [focusData addObject:[NSDictionary dictionaryWithObjectsAndKeys:imgUrl,@"image",
//                              @"pic1",@"title",
//                              @NO,@"isLocal",nil]];
//    }
//    [_focusView configUIWithFocusdata:focusData hasTitle:NO animateInterval:3];
}

#pragma mark -
#pragma mark 焦点图点击
- (void)selectFocusAtIndex:(int)index {
    if ([self.delegate respondsToSelector:@selector(selectFocusAtIndex:)]) {
        [self.delegate selectFocusAtIndex:index];
    }
}

@end
